package com.tudouji.project.bill.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.bill.mapper.ProducereportitemMapper;
import com.tudouji.project.bill.domain.Producereportitem;
import com.tudouji.project.bill.service.IProducereportitemService;

/**
 * 生产报明细Service业务层处理
 * 
 * @author tudouji
 * @date 2021-03-01
 */
@Service
public class ProducereportitemServiceImpl implements IProducereportitemService 
{
    @Autowired
    private ProducereportitemMapper producereportitemMapper;

    /**
     * 查询生产报明细
     * 
     * @param id 生产报明细ID
     * @return 生产报明细
     */
    @Override
    public Producereportitem selectProducereportitemById(Long id)
    {
        return producereportitemMapper.selectProducereportitemById(id);
    }

    /**
     * 查询生产报明细列表
     * 
     * @param producereportitem 生产报明细
     * @return 生产报明细
     */
    @Override
    public List<Producereportitem> selectProducereportitemList(Producereportitem producereportitem)
    {
        return producereportitemMapper.selectProducereportitemList(producereportitem);
    }

    /**
     * 新增生产报明细
     * 
     * @param producereportitem 生产报明细
     * @return 结果
     */
    @Override
    public int insertProducereportitem(Producereportitem producereportitem)
    {
        return producereportitemMapper.insertProducereportitem(producereportitem);
    }

    /**
     * 修改生产报明细
     * 
     * @param producereportitem 生产报明细
     * @return 结果
     */
    @Override
    public int updateProducereportitem(Producereportitem producereportitem)
    {
        return producereportitemMapper.updateProducereportitem(producereportitem);
    }

    /**
     * 批量删除生产报明细
     * 
     * @param ids 需要删除的生产报明细ID
     * @return 结果
     */
    @Override
    public int deleteProducereportitemByIds(Long[] ids)
    {
        return producereportitemMapper.deleteProducereportitemByIds(ids);
    }

    /**
     * 删除生产报明细信息
     * 
     * @param id 生产报明细ID
     * @return 结果
     */
    @Override
    public int deleteProducereportitemById(Long id)
    {
        return producereportitemMapper.deleteProducereportitemById(id);
    }
    @Override
    public int deleteAll()
    {
        return producereportitemMapper.deleteAll();
    }

    @Override
    public List<Producereportitem> selectProducereportitemByPlcode(String plcode) {
        return producereportitemMapper.selectProducereportitemByPlcode(plcode);
    }

    @Override
    public List<Producereportitem> selectProducereportitemByPlcodeIn(String plcode) {
        return producereportitemMapper.selectProducereportitemByPlcodeIn(plcode);
    }
}
